import { Request } from '@/common/js/request.js';

// 获取用户 code
export const getCode = () => {
  return new Promise((resolve, reject) => {
    uni.login({
      success: res => {
		console.log("login...res====",res)
        resolve(res.code);
		
      },
      fail: err => {
        reject(err);
      }
    });
  });
};